package net.hn.hnms.biz.quality.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.hn.hnms.biz.quality.service.ICoalQualityPlanService;
import net.hn.hnms.biz.quality.vo.CoalQualityDataVo;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.sys.common.core.web.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(value = "煤质分析统计", tags = {"煤质分析统计"})
@RestController
@RequestMapping("/coalQuality")
public class CoalQualityStatisticsController extends BaseController {

    @Autowired
    private ICoalQualityPlanService drivingPlanService;


    @ApiOperation("获取煤质分析统计近12月计划与实际")
//    @SaCheckPermission("plan:drivage:list")
    @GetMapping("/getRecentMonthsCoalQualityStats")
    public R<List<CoalQualityDataVo>> list(String mineCode) {
        return R.ok(drivingPlanService.selectListByDate(mineCode));
    }
}
